<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function funA(){
				location.href="https://blog.csdn.net/mm_3_by";
			}
			
	     	function funB(){
				history.back();
			}
	     	
	     	//弹出框
	     	function funC(){
	     		var b=confirm("我最美！！！");
	     		alert(b);
	     		var a=prompt("来了就说点啥吧");
	     		alert(a);
	     		document.write(a);
	     	}
	     	var i=1;
	     	var timer;
	     	function time(){
	     		document.getElementById("p1").innerHTML=i+++"秒";
	     		setTimeout("time()",1000);
	     	}
	     	
	     	function   A(){
	     		document.getElementById("p1").innerHTML=i+++"秒";
	     	}
	     	
	     	function B(){
	     		timer=setInterval("A()",100);
	     	}
		</script>
		<script language="JavaScript" src="funner.js"></script>
	</head>
	<body onload="B()">
		<button onclick="javascript:funA()">老孙去也</button>
		<button onclick="funB()">back</button>
		<button onclick="javascript:f()">外部</button>
		<br />
		<span id="p1"></span>
	</body>
</html>
